package org.jeecg.modules.sistersophie.facade;

import com.baomidou.mybatisplus.core.metadata.IPage;
import org.jeecg.modules.sistersophie.entity.AccountTransaction;
import org.jeecg.modules.sistersophie.model.request.AccountTransactionCancelRequest;
import org.jeecg.modules.sistersophie.model.response.AccountTransactionResponse;

import javax.servlet.http.HttpServletRequest;

public interface AccountTransactionFacade {


    boolean addCredit(AccountTransaction accountTransaction);

    boolean changeCredit(AccountTransaction accountTransaction,Integer invoiceId,Integer courseId,Integer ccancel,String remark,String extParam);

    IPage<AccountTransactionResponse> pageList(AccountTransaction accountTransaction, Integer pageNo, Integer pageSize, HttpServletRequest req);

    boolean cancel(AccountTransactionCancelRequest request);

}
